package com.itheima.tanhua.api.mongo;

import com.itheima.tanhuan.pojo.db.Friend;
import com.itheima.tanhuan.pojo.mongo.Movement;
import com.itheima.tanhuan.pojo.mongo.Visitors;
import org.bson.types.ObjectId;

import java.util.List;

public interface MovementServiceApi {
    Boolean publish(Movement movement);

    List<Friend>  friendById(Long userId);

    List<Movement> getMove(Long fid, Integer page, Integer pagesize);

    List<Movement> getFriend(String uid, int page, int pagesize);

    Movement getmoveById(ObjectId id);

    List<Movement> findRecommendMovements(List<Long> split);

    List<Movement> randomCount(int count);

    Integer likeComment(ObjectId objectId);


    Integer decreaseLikeMove(String movementId);

/*    Boolean isvisitor(Long visitor, Long userId);

    Integer haveScore(Visitors visitors, Long userId);

    void saveVisitor(Visitors visitors);*/
}
